package context_path_util

import (
	app_global "app/app_src/framework/app/global"
	"strings"
)

// 加上下文路径并返回
func WithContextPath(url string) string {
	if strings.HasPrefix(url, "/") {
		return app_global.ContextPath() + url
	} else {
		return app_global.ContextPath() + "/" + url
	}
}
